Integrand size = 22, antiderivative size = 51 \[ \int \frac {\sin (c+d x)}{\csc (c+d x)+\sin (c+d x)} \, dx=x-\frac {x}{\sqrt {2}}-\frac {\arctan \left (\frac {\cos (c+d x) \sin (c+d x)}{1+\sqrt {2}+\sin ^2(c+d x)}\right )}{\sqrt {2} d} \]
[Out]
Time = 0.20 (sec) , antiderivative size = 51, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.091, Rules used = {1144, 209} \[ \int \frac {\sin (c+d x)}{\csc (c+d x)+\sin (c+d x)} \, dx=-\frac {\arctan \left (\frac {\sin (c+d x) \cos (c+d x)}{\sin ^2(c+d x)+\sqrt {2}+1}\right )}{\sqrt {2} d}-\frac {x}{\sqrt {2}}+x \]
[In]
[Out]
Rule 209
Rule 1144
Rubi steps \begin{align*} \text {integral}& = \frac {\text {Subst}\left (\int \frac {x^2}{1+3 x^2+2 x^4} \, dx,x,\tan (c+d x)\right )}{d} \\ & = -\frac {\text {Subst}\left (\int \frac {1}{1+2 x^2} \, dx,x,\tan (c+d x)\right )}{d}+\frac {2 \text {Subst}\left (\int \frac {1}{2+2 x^2} \, dx,x,\tan (c+d x)\right )}{d} \\ & = x-\frac {x}{\sqrt {2}}-\frac {\arctan \left (\frac {\cos (c+d x) \sin (c+d x)}{1+\sqrt {2}+\sin ^2(c+d x)}\right )}{\sqrt {2} d} \\ \end{align*}
Time = 0.60 (sec) , antiderivative size = 30, normalized size of antiderivative = 0.59 \[ \int \frac {\sin (c+d x)}{\csc (c+d x)+\sin (c+d x)} \, dx=\frac {c}{d}+x-\frac {\arctan \left (\sqrt {2} \tan (c+d x)\right )}{\sqrt {2} d} \]
[In]
[Out]
Time = 0.40 (sec) , antiderivative size = 29, normalized size of antiderivative = 0.57
method | result | size |
derivativedivides | \(\frac {\arctan \left (\tan \left (d x +c \right )\right )-\frac {\sqrt {2}\, \arctan \left (\tan \left (d x +c \right ) \sqrt {2}\right )}{2}}{d}\) | \(29\) |
default | \(\frac {\arctan \left (\tan \left (d x +c \right )\right )-\frac {\sqrt {2}\, \arctan \left (\tan \left (d x +c \right ) \sqrt {2}\right )}{2}}{d}\) | \(29\) |
risch | \(x -\frac {i \sqrt {2}\, \ln \left ({\mathrm e}^{2 i \left (d x +c \right )}-2 \sqrt {2}-3\right )}{4 d}+\frac {i \sqrt {2}\, \ln \left ({\mathrm e}^{2 i \left (d x +c \right )}+2 \sqrt {2}-3\right )}{4 d}\) | \(55\) |
[In]
[Out]
none
Time = 0.27 (sec) , antiderivative size = 52, normalized size of antiderivative = 1.02 \[ \int \frac {\sin (c+d x)}{\csc (c+d x)+\sin (c+d x)} \, dx=\frac {4 \, d x + \sqrt {2} \arctan \left (\frac {3 \, \sqrt {2} \cos \left (d x + c\right )^{2} - 2 \, \sqrt {2}}{4 \, \cos \left (d x + c\right ) \sin \left (d x + c\right )}\right )}{4 \, d} \]
[In]
[Out]
\[ \int \frac {\sin (c+d x)}{\csc (c+d x)+\sin (c+d x)} \, dx=\int \frac {\sin {\left (c + d x \right )}}{\sin {\left (c + d x \right )} + \csc {\left (c + d x \right )}}\, dx \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 252 vs. \(2 (45) = 90\).
Time = 0.34 (sec) , antiderivative size = 252, normalized size of antiderivative = 4.94 \[ \int \frac {\sin (c+d x)}{\csc (c+d x)+\sin (c+d x)} \, dx=\frac {4 \, d x - \sqrt {2} \arctan \left (\frac {2 \, \sqrt {2} \sin \left (d x + c\right )}{2 \, {\left (\sqrt {2} + 1\right )} \cos \left (d x + c\right ) + \cos \left (d x + c\right )^{2} + \sin \left (d x + c\right )^{2} + 2 \, \sqrt {2} + 3}, \frac {\cos \left (d x + c\right )^{2} + \sin \left (d x + c\right )^{2} + 2 \, \cos \left (d x + c\right ) - 1}{2 \, {\left (\sqrt {2} + 1\right )} \cos \left (d x + c\right ) + \cos \left (d x + c\right )^{2} + \sin \left (d x + c\right )^{2} + 2 \, \sqrt {2} + 3}\right ) + \sqrt {2} \arctan \left (\frac {2 \, \sqrt {2} \sin \left (d x + c\right )}{2 \, {\left (\sqrt {2} - 1\right )} \cos \left (d x + c\right ) + \cos \left (d x + c\right )^{2} + \sin \left (d x + c\right )^{2} - 2 \, \sqrt {2} + 3}, \frac {\cos \left (d x + c\right )^{2} + \sin \left (d x + c\right )^{2} - 2 \, \cos \left (d x + c\right ) - 1}{2 \, {\left (\sqrt {2} - 1\right )} \cos \left (d x + c\right ) + \cos \left (d x + c\right )^{2} + \sin \left (d x + c\right )^{2} - 2 \, \sqrt {2} + 3}\right ) + 4 \, c}{4 \, d} \]
[In]
[Out]
none
Time = 0.29 (sec) , antiderivative size = 82, normalized size of antiderivative = 1.61 \[ \int \frac {\sin (c+d x)}{\csc (c+d x)+\sin (c+d x)} \, dx=\frac {2 \, d x - \sqrt {2} {\left (d x + c + \arctan \left (-\frac {\sqrt {2} \sin \left (2 \, d x + 2 \, c\right ) - 2 \, \sin \left (2 \, d x + 2 \, c\right )}{\sqrt {2} \cos \left (2 \, d x + 2 \, c\right ) + \sqrt {2} - 2 \, \cos \left (2 \, d x + 2 \, c\right ) + 2}\right )\right )} + 2 \, c}{2 \, d} \]
[In]
[Out]
Time = 23.80 (sec) , antiderivative size = 62, normalized size of antiderivative = 1.22 \[ \int \frac {\sin (c+d x)}{\csc (c+d x)+\sin (c+d x)} \, dx=x-\frac {\sqrt {2}\,\left (2\,\mathrm {atan}\left (\frac {\sqrt {2}\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3}{4}+\frac {7\,\sqrt {2}\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{4}\right )+2\,\mathrm {atan}\left (\frac {\sqrt {2}\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{4}\right )\right )}{4\,d} \]
[In]
[Out]